<?php

namespace fq\request\param;


/**
 * API CODE: analyze.taoword
 *
 * @author auto create
 * @since 1.0, 2021.09.09
 */
class AnalyzeTaoword
{

	private $tao_word;
	private $apiParas = array();

	public function getApiInterfaceName()
	{
		return "analyze.taoword";
	}

	public function getApiMethodName()
	{
		return "POST";
	}

	/**
	 * 淘口令。
	 * @param $tao_word
	 */
	public function setTaoWord($tao_word)
	{
		$this->tao_word = $tao_word;
		$tao_word && $this->apiParas["taoword"] = $tao_word;
	}

	/**
	 * 是否使用精准解析:
	 *  （0.否；1.是）默认1；不使用精准解析可提升接口响应速度
	 * @param $accurate
	 */
	public function setAccurate($accurate)
	{
		$accurate && $this->apiParas['accurate'] = $accurate;
	}

	public function getApiParas()
	{
		return $this->apiParas;
	}

	public function check()
	{

	}

	public function putOtherTextParam($key, $value)
	{
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
